package lab02.test07;

public class Person {

    //属性人名、年龄、身份证号等信息

    String name;
    int age;
    String idNumber;

//将属性信息作为字符串返回的一方法

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;

    }
}